
export const PARAMS_PARK = [
    {
        type: "a-input",
        field: "name",
        title: "请输入服务商名称",
        value: "",
        props: {placeholder:"请输入服务商名称"}
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
]
export const COLUMNS_PARK = [
    {
        title: '公司LOGO',
        dataIndex: 'logo',
        scopedSlots: { customRender: 'logo' }
    },
    {
        title: '服务商名称',
        dataIndex: 'name',
         scopedSlots: { customRender: 'name' }
    },
    {
        title: '服务商简称',
        dataIndex: 'nickName',
        scopedSlots: { customRender: 'nickName' }
    },
    {
        title: '统一信用代码',
        dataIndex: 'creditCode',
        scopedSlots: { customRender: 'creditCode' }
    },
    {
        title: '纳税人性质',
        dataIndex: 'taxType',
        customRender: (text, row, index) => {
            if (row.taxType === 1) {
                return '一般'
            } else if (row.taxType === 2){
                return '小规模'
            }
            return ''
        },
    },
    {
        title: '开票联系电话',
        dataIndex: 'phone',
    }, 
    {
        title: '邮政编码',
        dataIndex: 'postCode',
    }, 
    {
        title: '电子邮箱',
        dataIndex: 'email',
        scopedSlots: { customRender: 'email' }
    }, 
    {
        title: '注册地址',
        dataIndex: 'address',
        scopedSlots: { customRender: 'address' }
    }, 
    {
        title: '状态',
        dataIndex: 'status',
        customRender: (text, row, index) => {
            if (text === 1) {
                return '已启用'
            } else if (text === 2){
                return '已禁用'
            }
            return ''
        },
    }, 
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' }
    },
]